package geektime.spring.springbucks.waiter.message;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MessageListener {
    @StreamListener("message")
    public void message(String msg) {
        log.info("receive message: [{}].", msg);
    }

}
